import { request, METHOD } from '@/utils/request';
import qs from 'qs';
// 获取维修手册章节列表信息
export const getAtaListAllApi = (params) => {
  return request('/ftm/ftmAta/selectFtmAta', METHOD.GET, params);
};

// 新增维修手册章节列表信息
export const addFtmAtaApi = (params) => {
  return request('/ftm/ftmAta/saveFtmAta', METHOD.POST, params);
};

// 修改维修手册章节列表信息
export const updateFtmAtaApi = (params) => {
  return request('/ftm/ftmAta/updateFtmAta', METHOD.POST, qs.stringify(params));
};
// 删除维修手册章节列表信息
export const deleteFtmApi = (params) => {
  return request('/ftm/ftmAta/updateDeleted', METHOD.GET, params);
};

// 获取维修手册章节树;
export const getFtmAtaChapterApi = () => {
  return request('/ftm/ftmAta/getFtmAtaChapter', METHOD.GET);
};

